package com.tpshion.cloud.auth.common;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 分页查询参数
 */
@Valid
public class PageParam {

    @NotNull(message = "pageSize不能为空")
    private int pageSize;

    @NotNull(message = "pageNum不能为空")
    private int pageNum;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    @Override
    public String toString() {
        return "PageParam{" +
                "pageSize=" + pageSize +
                ", pageNum=" + pageNum +
                '}';
    }
}
